const componentFiles = require.context('./', false, /\.vue$/)
const component = componentFiles.keys().reduce((component, componentPath) => {
  // set './app.js' => 'app'
  let componentName = componentPath.replace(/^\.\/(.*)\.\w+$/, '$1')
  componentName = componentName.charAt(0).toUpperCase() + componentName.slice(1)
  const value = componentFiles(componentPath)
  component['Equipment' + componentName] = value.default
  return component
}, {})
export default component
